package com.deng.eventflow.core.exception;

import com.deng.eventflow.core.Processor;

public class SelfLoopException extends ConnectorException{
    /**
     * Dummy UID
     */
    private static final long serialVersionUID = 1L;

    public SelfLoopException(Processor source, int i, Processor destination, int j)
    {
        super(source, destination, i, j);
    }

    @Override
    public String getMessage()
    {
        StringBuilder out = new StringBuilder();
        out.append("Trying to connect processor #").append(m_source.getId()).append(" to itself");
        return out.toString();
    }
}
